package com.zhongan.openapi.service;

import java.util.Map;

import com.zhongan.openapi.common.ApiTextResponse;

public interface ExtGatewayService {
    /**
     * 同步调用
     * 
     * @param apiId
     * @param params
     * @return
     */
    ApiTextResponse syncMsg(Long apiId, String params);

    /**
     * 异步调用
     * 
     * @param apiId
     * @param params
     * @return
     */
    ApiTextResponse asyncMsg(Long apiId, String params);

    /**
     * @param apiId
     * @param params
     * @param urlParam
     * @return
     */
    ApiTextResponse syncMsg(Long apiId, String params, Map<String, Object> urlParam);

    /**
     * @param apiId
     * @param params
     * @param urlParam
     * @return
     */
    ApiTextResponse asyncMsg(Long apiId, String params, Map<String, Object> urlParam);

    /**
     * 重发消息
     * 
     * @param taskId
     * @return
     */
    ApiTextResponse resend(String requestId);

}
